import React, { useState } from 'react';
import LeftSelectTest from './components/LeftSelect';
import MyTableTest from './components/MyTable';

export default function index() {
  const [data, setData] = useState('');
  const handleDataChange = (value: any) => {
    console.log(value);
    setData(value);
  };
  return (
    <div style={{ display: 'flex' }}>
      <div>
        <LeftSelectTest handleDataChange={handleDataChange} />
      </div>
      <div style={{ marginLeft: '50px' }}>
        <div>这里是form表单 - 当前数据 {data}</div>
        <MyTableTest data={data} />
      </div>
    </div>
  );
}
